package graphicsExtended.panelDrawer;

import java.awt.Graphics2D;
import javax.swing.JPanel;

/**
 *
 * @author Shimu
 * @date 12-Jul-2012
 */
public interface PanelDrawer {
    
    /**
     * Called by the AnimationPanel once on start up. Any initializing and
     * calculations prior to the first image shown to the screen should
     * be in this method. 
     * 
     * @param panel 
     */
    public void init(JPanel panel);
    
    /**
     * Called once on startup by the JPanel.
     * 
     * @param g 
     */
    public void drawAll(Graphics2D g);
    
}
